package observer;

import observer.Copiable;

/**
 * Things that observe {@link ObservedList}s need to implement this.
 * 
 * @author Neil Dickson
 */
public interface ListObserver<E extends Copiable> {
	void listElementAdded(ObservedList<E> s,int index);
	void listElementRemoved(ObservedList<E> s,int index,E element);
	void listElementSet(ObservedList<E> s,int index,E oldElement);
	void listElementMoved(ObservedList<E> s,int from,int to);
}
